{template 'common/header'}
<style>
	body{padding:0;margin:0;background-image:url('{if empty($_W['styles']['indexbgimg'])}./themes/style54/images/bg_index.jpg{else}{$_W['styles']['indexbgimg']}{/if}');background-size:cover;}
	a{color:{$_W['styles']['linkcolor']}; text-decoration:none;}
	{$_W['styles']['css']}
	.box{width:85.1%; margin:30px 0 0 15%; height:450px; position:relative;}
	.box .box-item{float:left; position:absolute; text-align:center; display:block; text-decoration:none; outline:none; width:33.3%; height:90px;color:#6b7074; overflow:hidden;}
	.box .box-item.item1{top:0px; right:0px; background:rgba(255,255,255,0.4);}
	.box .box-item.item2{top:90px; left:0px; background:rgba(255,255,255,0.5);}
	.box .box-item.item3{top:90px; right:0px; background:rgba(243,88,40,0.9); color:#ffffff;}
	.box .box-item.item4{top:180px; right:33.3%; background:rgba(85,72,66,0.9);color:#ffffff;}
	.box .box-item.item5{top:270px; left:0px; background:rgba(255,255,255,0.8);}
	.box .empaty{top:270px; right:0px; background:rgba(255,255,255,0.24);}
	.box .box-item i{display:inline-block; width:50px; height:50px; line-height:50px; padding-top:10px; font-size:35px; overflow:hidden;}
	.box .box-item img{display:inline-block; height:60px; margin:0 auto;}
	.box .box-item span{color:{$_W['styles']['fontnavcolor']};display:block;font-size:14px; width:90%; height:30px; line-height:30px; margin:0 5%; text-align:center; overflow:hidden;}
	.box .bottom{width:100%; height:90px; position:absolute; bottom:0px; left:0px; color:#ffffff;}
	.box .bottom a{float:left; display:block; width:33.33%; color:#ffffff; height:90px; line-height:90px; text-align:center; text-decoration:none; overflow:hidden;}
	.box .bottom i{display:block; width:100%; height:65px; line-height:65px; font-size:35px; overflow:hidden; text-align:center;}
	.box .bottom img{display:block; height:65px; margin:0 auto;}
	.box .bottom span{color:{$_W['styles']['fontnavcolor']};display:block; font-size:14px; width:90%; height:25px; line-height:25px; margin:0 5%; text-align:center; overflow:hidden;}
	.box .bottom a:nth-child(1){background-color:rgba(85,86,90,0.7); }
	.box .bottom a:nth-child(2){background-color:rgba(85,86,90,0.9);}
	.box .bottom a:nth-child(3){background-color:rgba(43,47,50,0.9);}
</style>
<div class="box clearfix">
	{php $num = 1;}
	{data func="site_navs" section="1" item="nav"}
	<a href="{$nav['url']}" class="box-item {if $num == 1}item1{else if $num == 2}item2{else if $num == 3}item3{else if $num == 4}item4{else if $num == 5}item5{else}icon{/if}">
		{if !empty($nav['icon'])}
		<img src="{$_W['attachurl']}{$nav['icon']}">
		{else}
		<i class="fa {$nav['css']['icon']['icon']}" style="{$nav['css']['icon']['style']}"></i>
		{/if}
		<span style="{$nav['css']['name']}" title="{$nav['name']}">{$nav['name']}</span>
	</a>
	{php $num++; if($num > 5) break}
	{/data}
	<a href="#" class="box-item empaty"></a>
	<div class="bottom">
		{data func="site_navs" section="2" item="row"}
		<a href="{$nav['url']}">
			{if !empty($row['icon'])}
			<img src="{$_W['attachurl']}{$row['icon']}">
			{else}
			<i class="fa {$row['css']['icon']['icon']} img-circle" style="{$row['css']['icon']['style']}"></i>
			{/if}
			<span style="{$row['css']['name']}" title="{$row['name']}">{$row['name']}</span>
		</a>
		{php if($row['iteration'] > 2) break;}
		{/data}
	</div>
</div>
{template 'common/footer'}